﻿using MyTodo.Shared.Parameters;
using MyTodo.Shared.Services;

namespace MyTodo.Api.Services.Interfaces;

public interface IServiceBase<T>
{
    Task<ApiResponse> GetAllAsync(QueryParameter parameter);
    Task<ApiResponse> GetSingleAsync(int id);
    Task<ApiResponse> AddAsync(T model);
    Task<ApiResponse> UpdateAsync(T model);
    Task<ApiResponse> DeleteAsync(int id);
}
